class code1 {
    //移动零
    public void moveZeroes(int[] nums) {
        int fast = 0;
        int slow = 0;

        while(fast < nums.length) {
            if(nums[fast] != 0) {
                int tmp = nums[fast];
                nums[fast] = nums[slow];
                nums[slow++] = tmp;
            }
            fast++;
        }
    }
}